package action;

import manager.ComManager;
import manager.ObjectFactory;
import bean.UpdateUserMessage;
import bean.UserBean;

public class ActionUpdateUser {
	public UserBean doCreateUser(UserBean u){
		ObjectFactory of = new ObjectFactory();
		ComManager com = of.createComManager();
		UpdateUserMessage mOut = of.createUpdateUserMessage();
		UpdateUserMessage mIn ;
		mOut.setUser(u);
		mIn = (UpdateUserMessage)com.sendMessage(mOut);
		UserBean userReturn = mIn.getUser();
		return userReturn;
	}

}
